﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project4
{
    public class User
    {
        int ID;

        public int ID1
        {
            get { return ID; }
            set { ID = value; }
        }

        string Account;

        public string Account1
        {
            get { return Account; }
            set { Account = value; }
        }
        string Password;

        public string Password1
        {
            get { return Password; }
            set { Password = value; }
        }
        int UserType;

        public int UserType1
        {
            get { return UserType; }
            set { UserType = value; }
        }

        /// <summary>
        /// User的构造函数
        /// </summary>
        /// <param name="id"></param>
        /// <param name="account"></param>
        /// <param name="password"></param>
        /// <param name="usertype"></param>
        public User(int id, string account, string password, int usertype)
        {
            this.ID = id;
            this.Account = account;
            this.Password = password;
            this.UserType = usertype;
        }
    }
}
